'''
Created on Nov 30, 2011

@author: stelios
'''

import web
        
### Mail Information
web.config.smtp_server = 'smtp.gmail.com'
web.config.smtp_port = 587
web.config.smtp_username = 'username@gmail.com'
web.config.smtp_password = 'pass'
web.config.smtp_starttls = True
from_email = 'from_usernameg@gmail.com'

### Configurations
use_config = 'singletap'
mode_global = 'async'
request = 'doQuery'
result_format = 'votable'
lang = 'ADQL'
cur_static_dir = '/home/stelios/Desktop/workspace/webpy-vo-interface/static/'
registry_url = 'http://registry.astrogrid.org/astrogrid-registry/main/xqueryresults.jsp'
DR2TAPurl = 'http://wfaudata.roe.ac.uk/ukidssWorld-dsa//TAP/'
tap_factory="http://admire3.epcc.ed.ac.uk:8081/TAPFactory/create"
cached_endpoints = tuple([web.form.Checkbox('http://wfaudata.roe.ac.uk/ukidssDR6-dsa/TAP'),
web.form.Checkbox('http://wfaudata.roe.ac.uk/xmm-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/ukidssWorld-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/ukidssDR5-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/ukidssDR4-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/ukidssDR3-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/ukidssDR2-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/ukidssDR1-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/twomass-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/ssa-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/sdssdr7-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/sdssdr6-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/sdssdr5-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/sdssdr3-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/rosat-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/pssa-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/iras-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/glimpse-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/first-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/6dfdr3-dsa/TAP'),    
web.form.Checkbox('http://wfaudata.roe.ac.uk/6df-dsa/TAP'),    
web.form.Checkbox('http://voparis-srv.obspm.fr/srv/tap-titan_temperature'),    
web.form.Checkbox('http://voparis-srv.obspm.fr/srv/tap-titan_abundance'),    
web.form.Checkbox('http://voparis-srv.obspm.fr/srv/tap-basecom'),    
web.form.Checkbox('http://cass123-zone1.ast.cam.ac.uk/TPMHaloCat/TAP'),    
web.form.Checkbox('http://cass123-zone1.ast.cam.ac.uk/Hipparcos/TAP'),    
web.form.Checkbox('http://cass123-zone1.ast.cam.ac.uk/INT-WFS-observation-catalogue/TAP'),    
web.form.Checkbox('http://cass123-zone1.ast.cam.ac.uk/INT-WFS-merged-object-catalogue/TAP'),
web.form.Checkbox('http://cass123-zone1.ast.cam.ac.uk/2dFGRS/TAP'),    
web.form.Checkbox('http://dc.zah.uni-heidelberg.de/__system__/tap/run/tap')])

### globals
t_globals = {'datestr': web.datestr }
ERROR_HTML = "<div style=\"color:red;margin-left:50px;\">No elements returned. Please check your query</div>"
MAX_FILE_SIZE = 204857600 #use : 104857600
delay = 3

## debug
use_cached_endpoints = 0
